package com.eduhzy.ttw.commonsdk.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class RegisterRequestData implements Parcelable {
    private String type;
    private String yddh;
    private String realname;
    private String passWord;
    private String gender;
    private String code;
    private String userNameType;
    private String openid;
    private String mobile;
    private String deviceId;
    private String realName;

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getUserNameType() {
        return userNameType;
    }

    public void setUserNameType(String userNameType) {
        this.userNameType = userNameType;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getGender() {

        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getType() {
        return type;
    }

    /**
     * 用户身份（2教师/3学生/4学生家长）
     * @param type
     */
    public void setType(String type) {
        this.type = type;
    }

    public String getYddh() {
        return yddh;
    }

    public void setYddh(String yddh) {
        this.yddh = yddh;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public RegisterRequestData() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.type);
        dest.writeString(this.yddh);
        dest.writeString(this.realname);
        dest.writeString(this.passWord);
        dest.writeString(this.gender);
        dest.writeString(this.code);
        dest.writeString(this.userNameType);
        dest.writeString(this.openid);
        dest.writeString(this.mobile);
        dest.writeString(this.deviceId);
    }

    protected RegisterRequestData(Parcel in) {
        this.type = in.readString();
        this.yddh = in.readString();
        this.realname = in.readString();
        this.passWord = in.readString();
        this.gender = in.readString();
        this.code = in.readString();
        this.userNameType = in.readString();
        this.openid = in.readString();
        this.mobile = in.readString();
        this.deviceId = in.readString();
    }

    public static final Creator<RegisterRequestData> CREATOR = new Creator<RegisterRequestData>() {
        @Override
        public RegisterRequestData createFromParcel(Parcel source) {
            return new RegisterRequestData(source);
        }

        @Override
        public RegisterRequestData[] newArray(int size) {
            return new RegisterRequestData[size];
        }
    };
}
